// banner图类型
export interface BannerType {
  id?: number;
  url?: string;
  type?: number;
  position?: string;
  sort?: number;
  status?: number;
}

export interface BannerPageResponse extends ResponseData {
  data: BannerPageType;
}

export interface BannerPageType {
  total: number;
  records: BannerType[];
}

export interface BannerResponse extends ResponseData {
  data: BannerType;
}

export interface BannerEditResponse extends ResponseData {
  data: boolean;
}

export interface BannerPageRequest {
  type?: number;
  status?: number;
  currentPage: number;
  pageSize: number;
}

// 定义全部接口返回数据都拥有ts类型
interface ResponseData {
  code: number;
  message: string;
}
